<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.usernet.product.utils.StringUtils"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<script type="text/javascript" src="http://www.molo.cn/api/moloapi-2.0.min.js" charset="utf-8"></script>
<div class="boxF btmMar10">
      <div class="boxF-top">
        <div class="boxTitleC">搜索 '${key }' 有${page.countrecord }个结果</div>
        <ul class="optTab2">
        </ul>
      </div>
      <div class="boxF-mid">
      	<logic:present name="softList">
      	<logic:iterate id="item" name="softList">
        <div class="recList" id="nav00">
            <div class="recSinW btmLine1">
            <div class="recImg"><a href="info_${item.id }.html" target="_blank" title="${item.name }"><img src="<logic:empty name="item" property="icon">resources/images/icon_empty.png</logic:empty><logic:notEmpty name="item" property="icon"><bean:message key="base"/>upload/icon/${item.icon }</logic:notEmpty>" alt="${item.name }" /></a></div>
            <dl>
              <dt><a href="info_${item.id }.html" title="${item.name }" target="_blank" title="${item.name }">${item.name }</a></dt>
              <bean:define id="avg" name="item" property="avg" type="java.lang.Integer" />
              <dd class="exp"><span class="appGrade"><%=StringUtils.avgString1(avg) %><%=StringUtils.avgString2(5-avg) %></span><span class="fTime">发布时间：<bean:write name="item" property="time" format="yyyy-MM-dd"/></span><span class="fTime">下载次数：<b>${item.count }</b></span><span class="fTime">软件大小：<b>${item.size }</b></span></dd>
              <dd class="intro"><a href="info_${item.id }.html" target="_blank" title="${item.name }">${item.remark }</a></dd>
              <dd>
              <a href="info_${item.id }.html" title="${item.name }" target="_blank" class="viewBtn">查看</a> 
              <a target="_blank" href="down_${item.id }.html" class="sdownBtn">下载</a>
              <a title="一键快速安装到手机" href="javascript:moloapi_dl_apk('<bean:message key="base"/>upload/software/${item.download }','${item.name }','592ppc');" class="sdownBtn">安装</a>
              </dd>
            </dl>
          </div>
         </div>
         </logic:iterate>
         </logic:present>
        <div class="pageNumber">共<b>${page.countpage}页/${page.countrecord }</b>条记录&nbsp;&nbsp;&nbsp;<logic:notEqual value="1" name="page" property="nowpage"><a href="web/index.do?m=s&n=1&f=${flag }&k=${keyword }">首页</a>&nbsp;</logic:notEqual><logic:notEqual value="1" name="page" property="nowpage"><a href="web/index.do?m=s&n=${page.nowpage-1 }&f=${flag }&k=${keyword }">上一页</a>&nbsp;</logic:notEqual>
       	<bean:define id="startindex" name="page" property="startindex" type="java.lang.Integer" />
       	<bean:define id="nowpage" name="page" property="nowpage" type="java.lang.Integer" />
       	<bean:define id="endindex" name="page" property="endindex" type="java.lang.Integer" />
        <%for(;startindex<=endindex;startindex++){ %><a <%if(nowpage+1-1==startindex){ %>class="current"<%} %> href="web/index.do?m=s&n=<%=startindex %>&f=${flag }&k=${keyword }"><%=startindex %></a>&nbsp;<%} %>
        <logic:notEqual value="${page.countpage}" name="page" property="nowpage"><a href="web/index.do?m=s&n=${nowpage+1 }&f=${flag }&k=${keyword }">下一页</a>&nbsp;</logic:notEqual><logic:notEqual value="${page.countpage}" name="page" property="nowpage"><a href="web/index.do?m=s&n=${page.countpage }&f=${flag }&k=${keyword }">尾页</a>&nbsp;</logic:notEqual></div>
      </div>
    </div>